from django.contrib import admin

from .models import Car, Engine, Car2, Engine2, Car3, Engine3

# Register your models here.

class Engine3Admin(admin.StackedInline):
    model=Engine3

@admin.register(Car3)
class Car3Admin(admin.ModelAdmin):
    inlines = [Engine3Admin]


@admin.register(Engine)
class EngineAdmin(admin.ModelAdmin):
    pass

@admin.register(Car)
class CarAdmin(admin.ModelAdmin):
    pass

